package com.bd.scm.dao.mapper.authority;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bd.scm.domain.dto.authority.AuthorityDto;
import com.bd.scm.domain.models.authority.Authority;

import java.util.List;

/**权限管理Mapper
 * @ClassName AuthorityMapper
 * @Description TODO
 * @Author YH
 * @Date 2020/5/7 0007 14:53
 * @Version 1.0
 **/
public interface AuthorityMapper extends BaseMapper<Authority> {

  /**
   * 根据登录人分组编号与菜单编号查询权限
   * @param authorityDto groupNo 登录人分组编号 menuBh 菜单编号
   * @return 权限代码
   */
  String findAuthorityMenuSet(AuthorityDto authorityDto);

  /**
   * 根据权限代码查询开发什么权限
   * @param menuSet
   * @return
   */
  List<JSONObject> findAuthorityList(String menuSet);
}
